package com.common.app.data.bean

import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2025/08/05
 * <p>
 * 描述：云端下载数据
 * <p>
 * 修订历史：
 */
@Parcelize
@Entity(tableName = "cloud_down_data", indices = [Index(value = ["userId"])])
class CloudDownDataModel: Parcelable {

    //主键
    @PrimaryKey(autoGenerate = true)
    var id = 0

    @ColumnInfo
    var userId: String? = null

    @ColumnInfo
    var type: String? = null

    @ColumnInfo
    var data: String? = null

    @ColumnInfo
    var value: String? = null

    @ColumnInfo
    var timestamp: Long = 0

}